﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo3Layer_Payment.Data_Tranfer_Object;
using Demo3Layer_Payment.Data_Access_Layer;

namespace Demo3Layer_Payment.Bussines_Logic_Layer
{
    class CustomersBLO
    {
        #region"Attribute"
        private CustomersDAO objCustomersDAO;
        private CustomersDTO objCustomerDTO;
        string strError;
        #endregion

        #region"Property"
        /// <summary>
        /// Property of attribute objCustomerDTO
        /// </summary>
        public CustomersDTO ObjCustomerDTO
        {
          get { return objCustomerDTO; }
          set { objCustomerDTO = value; }
        }
        #endregion

        #region"Constructor method"
        /// <summary>
        /// Constructor method object CustomersBLO' class
        /// </summary>
        public CustomersBLO()
        {
            this.ObjCustomerDTO = new CustomersDTO();
            this.objCustomersDAO = new CustomersDAO();
            this.strError = string.Empty;
        }
        #endregion

        #region"Method"
        /// <summary>
        /// Method insert a new customers of user
        /// </summary>
        /// <returns></returns>
        public bool InsertCustomers()
        {
            return objCustomersDAO.InsertCustomers();
        }

        public System.Data.DataTable SelectAllCustomers()
        {
            return objCustomersDAO.SelectAllCustomers();
        }
        #endregion
    }
}
